package com.ithei.date.mydate;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) throws ParseException {
        String birthday;
        Scanner sc=new Scanner(System.in);
        birthday=sc.next();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        Date date=sdf.parse(birthday);
        Date date1=new Date();
        System.out.println(date1.getYear()-date.getYear());;
    }
}
